<a ng-class="{selected: location.path() == '/'} " href="#/">All</a>